/**
 * @class   Ext.ux.FilterTree
 * 在树状菜单中加了过滤器、全展开按钮和全收缩按钮
 */
Ext.ux.GroupGridExtend = function(config){
    config.tbar=new Ext.Toolbar({
                cls:'top-toolbar',
                items:[
                new Ext.form.TextField({
                    id:'search',
                    margins : '0 0 0 0',
                    width: 200,
                    emptyText:'输入过滤关键字',
                    listeners:{
                        render: this.textFieldRender.createDelegate(this)
                    }
                }),'-',
                {
                    iconCls: 'icon-expand-all',
                    tooltip: '全部展开',
                    handler: this.expand.createDelegate(this)
                }, '-', {
                    iconCls: 'icon-collapse-all',
                    tooltip: '全部收缩',
                    handler: this.collapse.createDelegate(this)
                }]
            });
    Ext.ux.GroupGridExtend.superclass.constructor.call(this,config);
    //设置树的过滤器
    this.filter = new Ext.tree.TreeFilter(this, {
        clearBlank: true,
        autoClear: true
    });
    this.hiddenPkgs = new Array;
}
Ext.extend(Ext.ux.GroupGridExtend, Ext.ux.GridExtend,{
	
})